﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ymatou.ServiceCenter.Domain.Models;

namespace Ymatou.ServiceCenter.Domain.IRepositories
{
    public interface IServiceMetadataRepository : IRepositoryBase<ServiceMetadata>
    {
        ServiceMetadata GetServiceMetadata(string appId, string apiName, string httpMethod);

        IList<string> GetAllAppIdList();

        IList<ServiceMetadata> GetServiceMetadatas(string appId, long? lastUpdateTicks);

        int TryInsert(ServiceMetadata entity);

        bool TryUpdate(ServiceMetadata entity);
    }
}
